package vo;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

public class BSCPerspectiveVO {
	
	private String perspective, acronym;
	private List<BscGoalVO> listaBscGoal;
	private int id, position, strategicPlanId, perspectiveId;
	
	public void setPerspective(String perspective) {
		this.perspective = perspective;
	}
	
	public String getPerspective() {
		return perspective;
	}

	public void setListaBscGoal(List<BscGoalVO> listaBscGoal) {
		this.listaBscGoal = listaBscGoal;
	}

	public List<BscGoalVO> getListaBscGoal() {
		return listaBscGoal;
	}

	public void setId(int id) {
		this.id = id;
	}

	public int getId() {
		return id;
	}
	
	public Map<Integer, BscGoalVO> getMapaBscGoal(){
		Map<Integer, BscGoalVO> mapa = new HashMap<Integer, BscGoalVO>();
		
		for(BscGoalVO vo:getListaBscGoal()){
			mapa.put(vo.getId(), vo);
		}
		
		return mapa;
	}
	
	public void removeBscGoal(int goalId){
		BscGoalVO vo = getMapaBscGoal().get(goalId);
		this.listaBscGoal.remove(vo);
	}

	public void setPosition(int position) {
		this.position = position;
	}

	public int getPosition() {
		return position;
	}

	public void setStrategicPlanId(int strategicPlanId) {
		this.strategicPlanId = strategicPlanId;
	}

	public int getStrategicPlanId() {
		return strategicPlanId;
	}

	public void setPerspectiveId(int perspectiveId) {
		this.perspectiveId = perspectiveId;
	}

	public int getPerspectiveId() {
		return perspectiveId;
	}

	public void setAcronym(String acronym) {
		this.acronym = acronym;
	}

	public String getAcronym() {
		return acronym;
	}
}
